const sequelize = require("./db")
const {
    DataTypes
} = require('sequelize');


const Blog = sequelize.define('blog', {
    // 标题名字
    titles_name: {
        type: DataTypes.STRING,
        allowNull: false
    },
    articles_img: {
        type: DataTypes.STRING
    },
    // 文章发布时间
    articles_Date: {
        type: DataTypes.STRING,
        allowNull: false
    },
    // 文章字段
    articles_field: {
        type: DataTypes.STRING,
        allowNull: false
    }
}, {
    paranoid: true,
    updatedAt:false,
    deletedAt:false,
    createdAt:false
});


module.exports = Blog;